home *** CD-ROM | disk | FTP | other *** search
/ Univers Mac Interactif 42 / Univers Mac Interactif - Issue 42.iso / >interactif / Démos Voyager / FAM.DIR / 00054_Script_MOVIE SCRIPT < prev    next >
Text File  |  1994-10-18  |  702b  |  39 lines

  1. on startMovie
  2.   cursor 200
  3. end
  4.  
  5. on waitQT chan
  6.   if the movieRate of sprite chan = 1 then go the frame
  7. end
  8.  
  9. on waitsnd chan
  10.   if soundBusy(chan)=1 then go the frame
  11. end
  12.  
  13. on waiting theTicks
  14.   --must be preceded by startTimer
  15.   if theTicks >= the timer then go the frame
  16. end
  17.  
  18. on goMovie chan
  19.   set the movieRate of sprite chan to 1
  20. end
  21.  
  22. on KeyDown
  23.   -- for movies with custom palettes
  24.   global autoplaying
  25.   put 0 into autoplaying
  26.   unloadcast
  27.   if  the castNum of sprite 1 > 0 then
  28.     put the castNum of sprite 1 into palCast
  29.     put the palette of cast palCast into yrPal
  30.     puppetPalette yrPal
  31.   end if
  32.   go to frame "end"
  33. end
  34.  
  35. on enterframe
  36.   cursor 200
  37. end
  38.  
  39.